﻿@model CMS2.Models.Student

@{
    ViewBag.Title = "Create";
}

@*<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Cuprum" />*@
    <link rel="stylesheet" href="@Url.Content("~/Content/css/style.css")" />
@*    <link rel="stylesheet" href="@Url.Content("~/Content/css/jquery-ui-1.8.16.custom.css")" media="screen" />*@

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
     
        <!--Statistic-->
<div class="grid-1">
   <div class="title-grid">Create Student</div>
    <div class="content-gird">

      @*<div class="autoUpdate" style="width:730px; float:left; font-weight:bold">*@


                   
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)

              <!-- start of left div -->
      <div class="leftDive">
            <legend></legend>
            <br/><br/>
            <div class="editor-label">
                Roll No
               @* @Html.LabelFor(model => model.RollNo)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.RollNo)
                @Html.ValidationMessageFor(model => model.RollNo)
            </div>
            <br/>
            <div class="editor-label">
              User Name
              @*  @Html.LabelFor(model => model.Username)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Username)
                @Html.ValidationMessageFor(model => model.Username)
            </div>
            <br/>
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
            <br/>
            <div class="editor-label">
                Father Name
               @* @Html.LabelFor(model => model.FatherName)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.FatherName)
                @Html.ValidationMessageFor(model => model.FatherName)
            </div>
            <br/>
            <div class="editor-label">
                @Html.LabelFor(model => model.Gender)

            </div>
            <div class="editor-field">
                @*@Html.EditorFor(model => model.Gender)*@
                @Html.DropDownListFor(model=>model.Gender,new List<SelectListItem>{ new SelectListItem{ Text="Male", Value = "Male", Selected= true}, new SelectListItem{ Text="Female", Value = "Female"}})
                @Html.ValidationMessageFor(model => model.Gender)
            </div>
            <br/>
            <div class="editor-label">
                
                @Html.LabelFor(model => model.DateOfBirth)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.DateOfBirth)
                @Html.ValidationMessageFor(model => model.DateOfBirth)
            </div>
            <br/>
            <div class="editor-label">
                Admission Date
               @* @Html.LabelFor(model => model.AdmissionDate)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.AdmissionDate)
                @Html.ValidationMessageFor(model => model.AdmissionDate)
            </div>

      </div>
        
        <!-- End of left div -->
        
        
        <!-- start of Right div -->
      <div class="rightDiv" >
      <br/><br/>
      <div class="editor-label">
                @Html.LabelFor(model => model.Degree)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Degree)
                @Html.ValidationMessageFor(model => model.Degree)
            </div>
            <br/>
            <div class="editor-label">
               Mobile No
               @* @Html.LabelFor(model => model.MobileNo)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.MobileNo)
                @Html.ValidationMessageFor(model => model.MobileNo)
            </div>
            <br/>
            <div class="editor-label">
                Landline No
               @* @Html.LabelFor(model => model.LandLineNo)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.LandLineNo)
                @Html.ValidationMessageFor(model => model.LandLineNo)
            </div>
            <br/>
            <div class="editor-label">
                @Html.LabelFor(model => model.Address)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Address)
                @Html.ValidationMessageFor(model => model.Address)
            </div>
            <br/>
            <div id="editor-label">
           
                @Html.LabelForModel("Class")
            </div>
            <div id="dropdownList">
                @Html.DropDownList("classes")
    
            </div>
            <br/><br/>
            <p>
                <input type="submit" value="Create" class="button-a gray" />
            </p>
  </div>
           <!-- End of Right div --> 
    }
    <br/>
    <br/>
    <div>
        @*@Html.ActionLink("Back to List", "Index")*@
        <a href="/Student/Index"><button class="button-a dark-blue" >Back to List</button></a>
    </div>

    
   
        
@*</div>*@
</div>
</div>  
		    <!--Statistic end-->


